import { App } from 'vue'
import * as ElIcons from '@element-plus/icons'
import { toLine } from '@/utils'

export default (app: App) => {
  // 全局注册图标
  for (let i in ElIcons) {
    app.component(`el-icon${toLine(i)}`, (ElIcons as any)[i])
  }
}
